package com.mxpio.erp.common.equipment.service;

import com.mxpio.erp.common.equipment.entity.EquipmentAudit;
import com.mxpioframework.system.service.BaseService;

import javax.servlet.http.HttpServletRequest;


/**
 * 稽核管理Service接口
 *
 * @author Cheng
 * @date 2023-07-10
 */
public interface EquipmentAuditService extends BaseService<EquipmentAudit> {


    /**
     * 添加（申请）
     * @param equipmentAudit
     */
    void saveAudit(EquipmentAudit equipmentAudit);

    /**
     * 派工
     * @param equipmentAudit
     */
    void send(EquipmentAudit equipmentAudit);

    /**
     * 改派
     * @param reason
     * @param username
     * @param id
     */
    void reSendAuditById(String reason, String username,String id);

    /**
     * 整改完成
     * @param equipmentAudit
     */
    void finish(EquipmentAudit equipmentAudit);


    /**
     * 验收完成
     * @param id
     */
    void check(String id, HttpServletRequest request);

    /**
     * 验收驳回
     * @param id
     * @param reason
     */
    void reject(String id,String reason);
    /**
     * 签核驳回
     * @param id
     */
    void signOffBack(String id,String reason);
    /**
     * 更新离线执行
     * @param equipmentAudit
     * @return
     */
    public void executeOffLineData(EquipmentAudit equipmentAudit);
}
